﻿using System;
namespace WebBanThuoc.DAO
{
    interface IDataProvider
    {
        void AddParameters(System.Collections.Generic.List<System.Data.SqlClient.SqlParameter> param);
        void AddParameters(System.Data.SqlClient.SqlParameter param);
        void AddParameters(string paramName, object objValue, System.Data.SqlDbType typeData);
        void AddParameters(string paramName, object objValue, System.Data.SqlDbType typeData, System.Data.ParameterDirection paDir);
        void ClearParamaters();
        void closeConnection();
        System.Data.SqlClient.SqlCommand Com { get; }
        System.Data.SqlClient.SqlConnection Con { get; }
        bool checkListParamaterHasData(System.Collections.Generic.List<System.Data.SqlClient.SqlParameter> listParamater);
        System.Data.SqlClient.SqlDataAdapter DAdap { get; }
        System.Data.SqlClient.SqlDataReader DaReader { get; }
        System.Collections.Generic.List<System.Data.SqlClient.SqlParameter> DbParameters { get; set; }
        int ExecuteNonQuery_Command(System.Data.CommandType commandType, string commandText);
        System.Data.SqlClient.SqlDataReader ExecuteReader_Command(System.Data.CommandType commandType, string commandText);
        void getConnectionString(string p_connectionString);
        bool HasData { get; }
        void openConnection();
        void openNewConnection();
    }
}
